function editPwd(){
	
	var customer = {
			old_pwd : $("#old_pwd").val(),
			new_pwd1 : $("#new_pwd1").val(),
			new_pwd2 : $("#new_pwd2").val(),
		};
 //alert(customer);
		$.ajax({
			type : "post",
			url : "customerAction!pwdEdit.action",
			data : customer,
			dataType : "json",

			success : function(result) {
				//alert("result:" + result);
				if (result.code=="003") {
					alert(result.msg);
					window.location.href = "main.jsp";
				}
				if (result.code == "002") {
					alert(result.msg);
					
				}
				if (result.code == "001") {
					alert("未登录");
					window.location.href = "index.jsp";
				}
				
			},

			error : function(XMLHttpRequest, textStatus, errorThrown) {
				alert("XMLHttpRequest: " + XMLHttpRequest);
				alert("textStatus: " + textStatus);
				alert("errorThrown: " + errorThrown);
			}
		});
}